<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <link rel="stylesheet" href="mm_lodging1.css" type="text/css" />
    <title>Delete Marker</title>

<style type="text/css">
	<!--
	body {
		background-color: #0099CC;
	}
	.style2 {font-family: Arial, Helvetica, sans-serif}
	.style3 {
		font-family: Verdana, Arial, Helvetica, sans-serif;
		color: #000000;
		font-weight: bold;
	}
	.style5 {font-family: Arial, Helvetica, sans-serif; font-size: 12px; }
	-->
</style>
</head>

<body>
<h1 align="center" class="pageName style3">
    <span class="style2">Delete Marker</span>
    <img src="Imagenes/login2.png" width="32" height="28" />
</h1>

<form id="form1" name="form1" method="post" action="deleteMarker1.php" target="mainFrame">
<table width="500">
	<?php
    
	include "Global.php";
	//Conexion a mysql y a la base de datos
	$connection = DBConnect();
        
        $query="select * FROM places"; 
        $resultado = mysql_query($query) or die ('\n error en query ' . mysql_error());
		$num_rows = mysql_num_rows($resultado);
		if($num_rows == '0'){
			$html="<h3 align=center>There is no markers</h3>";
			echo "$html";	
		}else{
			while($row = mysql_fetch_assoc($resultado)){
				$id=$row['IDplaces'];
				$name= $row["Name"];
				$address= $row["Adress"];
				echo "<tr>";
				echo "<td><label>";
				echo "<input type='radio' name='place' value='$id' id='$id'/>";
				echo "$name</label></td>";
				echo "<td><label>";
				echo "$address</label></td>";
				echo "</tr>";
			}
		}	
	DBCLose($connection);
    ?>
</table>

<div align="center">
	<br />
	<input name="View" type="submit" value="Delete Marker" method="post" class="subHeader" action="deleteMarker1.php"/>
</div>
</form>

</body>
</html>
